graphic_files = [
- 'babl-16x16',
- 'babl-48x48',
- 'babl-a4poster',
+ 'babl-16x16.svg',
+ 'babl-48x48.svg',
+ 'babl-a4poster.svg',
]
-graphic_files_install = [
- files('index.html'),
-]
+graphic_files_install = []
+
+# Dummy config to copy index.html to build
+graphic_files_install += configure_file(
+ input: 'index.html',
+ output: '@PLAINNAME@',
+ configuration: configuration_data()
+)
+
+
+foreach file : graphic_files
+ # Dummy config to copy svg files to build
+ graphic_files_install += configure_file(
+ input: file,
+ output: '@PLAINNAME@',
+ configuration: configuration_data()
+ )
+endforeach
if rsvg_convert_bin.found()
foreach file : graphic_files
: []
)
- graphic_files_install += custom_target(file,
- input : [ file + '.svg' ],
- output: [ file + '.png' ],
+ graphic_files_install += custom_target(
+ file,
+ input: file,
+ output: '@BASENAME@.png',
command: [
rsvg_convert_bin,
sizeinfo,
scptarget = host + ':' + location + '/'
-babl_css = files('babl.css')
-
xml_insert = find_program(join_paths('tools', 'xml_insert.sh'))
index_static_html = configure_file(
configuration: conf,
)
+babl_css = configure_file(input : 'babl.css',
+ output : 'babl.css',
+ configuration : configuration_data())
+
index_html_tmp = custom_target('index.html.tmp',
input : [ babl_html_dump, ],
output: [ 'index.html.tmp', ],
'&&', xml_insert, '@OUTPUT@', 'TODO', '@INPUT3@',
'&&', xml_insert, '@OUTPUT@', 'NEWS', '@INPUT4@',
],
+ build_by_default: true,
)